package particle;

import processing.core.PApplet;

public class Square extends Shape {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	// Inherits all instance variables from parent
	PApplet parent; // The parent PApplet that we will render ourselves onto

	public Square(PApplet p, float x_, float y_, float r_) {
		super(p, x_, y_, r_); // Call the parent constructor
		parent = p;
	}

	// Inherits "jiggle" method from parent
	// We don't have to rewrite it

	// An additional method to render the square
	public void render() {
		parent.rectMode(CENTER);
		parent.fill(0, 75);
		parent.stroke(0);
		parent.rect(x, y, r, r);
	}
}
